package com.cykj.page01;

/**
 * @BelongsProject: HandTomcat
 * @BelongsPackage: com.cykj.page01
 * @Author: 阿隆
 * @CreateTime: 2025-11-12 20:02
 * @Description: 线程创建方式一: 继承Thread
 * @Version: 1.0
 */
public class MyThread extends Thread {

    @Override
    public void run() {
        //要执行的代码 线程任务
        for (int i = 0; i < 100; i++) {
            System.out.println(Thread.currentThread().getName() + " " + i);
        }
    }
}